package com.woniuxy.store.core.service.impl;

import com.woniuxy.store.core.model.MdSt;
import com.woniuxy.store.core.mapper.MdStMapper;
import com.woniuxy.store.core.service.MdStService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author gmx
 * @since 2021-06-29
 */
@Service
public class MdStServiceImpl extends ServiceImpl<MdStMapper, MdSt> implements MdStService {

    @Autowired(required = false)
    MdStMapper mdStMapper;

    @Override
    public void insertOne(MdSt mdSt) {
        mdStMapper.selectById(mdSt);
    }

    @Override
    public void delectOne(int stId) {
        mdStMapper.delectOne(stId);

    }

    @Override
    public MdSt selectById(int stId) {
        MdSt mdSt = this.mdStMapper.selectByIds(stId);
        return mdSt;
    }
}
